<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('仓库信息展示')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-ware-edit" th:object="${repoWare}">
        <input name="wareId" th:field="*{wareId}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">仓库名称：</label>
            <div class="col-sm-8">
                <input name="wareName" th:field="*{wareName}" class="form-control" type="text" disabled>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">仓库地址：</label>
            <div class="col-sm-8">
                <input name="wareAddress" th:field="*{wareAddress}" class="form-control" type="text" disabled>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">仓库所属区域：</label>
            <div class="col-sm-8">
<!--                <input name="sysCityId" th:field="*{sysCityId}" class="form-control" type="text">-->
                <div class="form-control" disabled>
<!--                    <option value="0" ></option>-->
                    <option th:each="city,cityStat:${cityList}" th:value="${city.cityId}" th:text="${city.cityName}" th:if="${city.cityId}==*{sysCityId}" >--上饶--</option>
                    <!--								<option value="2">&#45;&#45;南昌&#45;&#45;</option>-->
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">负责人：</label>
            <div class="col-sm-8">
                <!--                <input name="sysCityId" th:field="*{sysCityId}" class="form-control" type="text">-->
                <div class="form-control" disabled>
<!--                    <option value="0" ></option>-->
                    <option th:each="city,cityStat:${cityList}" th:value="${city.cityId}" th:text="${city.cityName}" th:if="${city.cityId}==*{sysCityId}">--上饶--</option>
                    <!--								<option value="2">&#45;&#45;南昌&#45;&#45;</option>-->
                </div>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label" disabled>状态：</label>
            <div class="col-sm-8">
                <div class="radio-box" th:if="*{status == '0'}">
                    <input type="radio" name="status" value="0" checked disabled >不可用
<!--                    <label th:for="studentStatus" th:text="未知"></label>-->
                </div>
                <div class="radio-box" th:if="*{status == '1'} ">
                    <input type="radio" name="status" value="1" checked disabled>可用
<!--                    <label th:for="studentStatus" th:text="未知"></label>-->
                </div>
<!--                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>-->
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">仓库金额：</label>
            <div class="col-sm-8">
                <input name="wareMoney" th:field="*{wareMoney}" class="form-control" type="text" disabled>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
    var prefix = ctx + "storage/warelook";
    $("#form-ware-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-ware-edit').serialize());
        }
    }

    $("input[name='studentBirthday']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>